<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>添加课程</title>
    </head>

    {% include "./header.njk" %}

    {% import "./forms.njk" as forms %}
    <form action="" method="post">
        {{ forms.label( '名称' ) }}
        {{ forms.field( 'courseName' ) }}

        {{ forms.label( '课时' ) }}
        {{ forms.field( 'hours' ) }}

        {{ forms.label( '学分' ) }}
        {{ forms.field( 'credit' ) }}

        <button type="submit">添加</button>
    </form>

    {% include "./footer.njk" %}

<html>